package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.BtyWmh;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyWmhParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyWmhDto;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyWmhResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liuy
 * @since 2022-02-09
 */
public interface BtyWmhService extends IService<BtyWmh> {

    /**
     * 新增
     *
     * @author liuy
     * @Date 2022-02-09
     */
    void add(BtyWmhParam param);

    /**
     * 删除
     *
     * @author liuy
     * @Date 2022-02-09
     */
    void delete(BtyWmhParam param);

    /**
     * 更新
     *
     * @author liuy
     * @Date 2022-02-09
     */
    void update(BtyWmhParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author liuy
     * @Date 2022-02-09
     */
    BtyWmhResult findBySpec(BtyWmhParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author liuy
     * @Date 2022-02-09
     */
    List<BtyWmhResult> findListBySpec(BtyWmhParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author liuy
     * @Date 2022-02-09
     */
     LayuiPageInfo findPageBySpec(BtyWmhParam param);

    boolean insertWmh(List<BtyWmhDto> list);

    List<BtyWmhResult>wmhList();

    List<BtyWmhResult>sflbList(String dm);
    int updateByDm(BtyWmhParam paramCondition);

    int updateErrMsgByDm(BtyWmhParam paramCondition);
}
